
<ion-view class="specialJudgment-home-view" view-title="品质特裁">
    <ion-header-bar  class="bar-subheader">
        <im-card-header card-title="单品信息"></im-card-header>
        <div class="im-flow-container">
            <im-master-item class="im-flow-item" master-name="单号" 
                master-value="{{data.MOCode}}">
            </im-master-item>
            <im-master-item class="im-flow-item" master-name="料号" 
                master-value="{{data.ItemMasterCode}}">
            </im-master-item>
            <im-master-item class="im-flow-item" master-name="名称" 
                master-value="{{data.ItemMasterName}}">
            </im-master-item>
            <im-master-item class="im-flow-item" master-name="批次" 
                master-value="{{data.MOLotNumber}}">
            </im-master-item>
            <im-master-item class="im-flow-item" master-name="检验人" 
                master-value="{{data.Users[0].Name}}">
            </im-master-item>
            <im-master-item class="im-flow-item" master-name="作业" 
                master-value="{{data.WorkName}}">
            </im-master-item>
        </div>
        <im-card-header card-title="缺陷信息">
            <span class="demo-qc-status">不合格</span>
            <im-pull-right>
                <button class="button" ng-click="prompt()">备注</button>
            </im-pull-right>
        </im-card-header>
    </ion-header-bar>
    <ion-content>
        <div class="im-flow-container">
            <!-- <im-defect-card class="im-flow-item" ng-repeat="item in data.qcRecords" 
                bad-type="{{item.BadType}}" bad-pos="{{item.BadPosition}}" bad-desc="{{item.Description}}">
            </im-defect-card> -->
            <im-defect-card class="im-flow-item" ng-repeat="record in data.qcRecords" 
            defect="record" readonly="false" on-bad-pos="onBadPos(defect)">
            </im-defect-card>
        </div>
    </ion-content>
    <ion-footer-bar class="specialJudgment-home-footer">
        <im-pull-right>
            <button ng-disabled="disableJudge" ng-click="submitData(2)" class="button specialJudgment-button-accept">让步接收</button>
            <button ng-disabled="disableJudge" ng-click="submitData(5)" class="button specialJudgment-button-reject">报废</button>
            <button ng-disabled="disableJudge" ng-click="submitData(4)" class="button specialJudgment-button-rework">返工</button>

            <button ng-disabled="disableJudge" ng-click="submitData(3)" class="button specialJudgment-button-judge">品质判定</button>
        </im-pull-right>
    </ion-footer-bar>
</ion-view>